<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:17:32 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>git init</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#_____________________________">
                                Получение и создание проектов                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="bcfa843f4d411ac78d8d28d2f98fed81dc0e4ebd02e8721094fa3250902829fd/2e" data-source="git-init" onmousemove="i18n(this)">git-init</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="faa0ffcb02f9043e5b827c2b8c68272d532b0bec2552900cf4c1c4d0c59e52ae/1d" data-source="git-init - Create an empty Git repository or reinitialize an existing one" onmousemove="i18n(this)">git-init &mdash; &scy;&ocy;&zcy;&dcy;&acy;&tcy;&softcy; &pcy;&ucy;&scy;&tcy;&ocy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;  Git  &icy;&lcy;&icy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &icy;&ncy;&icy;&tscy;&icy;&acy;&lcy;&icy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&jcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-css">git init <span class="hljs-selector-attr">[-q | --quiet]</span> <span class="hljs-selector-attr">[--bare]</span> <span class="hljs-selector-attr">[--template=&lt;template-directory&gt;]</span>
          <span class="hljs-selector-attr">[--separate-git-dir &lt;git-dir&gt;]</span> <span class="hljs-selector-attr">[--object-format=&lt;format&gt;]</span>
          <span class="hljs-selector-attr">[-b &lt;branch-name&gt; | --initial-branch=&lt;branch-name&gt;]</span>
          <span class="hljs-selector-attr">[--shared[=&lt;permissions&gt;]</span>] <span class="hljs-selector-attr">[&lt;directory&gt;]</span></pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="5420fb4629a7ad39be8c377503930225f8af42d6cd52fbf536fe94c96905878d/fa" data-source="This command creates an empty Git repository - basically a &lt;code&gt;.git&lt;/code&gt; directory with subdirectories for &lt;code&gt;objects&lt;/code&gt;, &lt;code&gt;refs/heads&lt;/code&gt;, &lt;code&gt;refs/tags&lt;/code&gt;, and template files. An initial branch without any commits will be created (see the &lt;code&gt;--initial-branch&lt;/code&gt; option below for its name)." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy; &pcy;&ucy;&scy;&tcy;&ocy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;  Git  &mdash; &pcy;&ocy; &scy;&ucy;&tcy;&icy;, &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;  <code>.git</code>  &scy; &pcy;&ocy;&dcy;&kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;&mcy;&icy; &dcy;&lcy;&yacy;  <code>objects</code> ,  <code>refs/heads</code> ,  <code>refs/tags</code>  &icy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy;. &Bcy;&ucy;&dcy;&iecy;&tcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&acy; &ncy;&acy;&chcy;&acy;&lcy;&softcy;&ncy;&acy;&yacy; &vcy;&iecy;&tcy;&kcy;&acy; &bcy;&iecy;&zcy; &kcy;&acy;&kcy;&icy;&khcy;-&lcy;&icy;&bcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy; (&iecy;&iecy; &icy;&mcy;&yacy; &scy;&mcy;. &vcy; &ocy;&pcy;&tscy;&icy;&icy;  <code>--initial-branch</code>  &ncy;&icy;&zhcy;&iecy;).</span></p> <p><span data-i18n="a59cf4102d8400ead25b670b33b4c7bba2d0e3d8ab4ac1b3f274893ef6882786/4b" data-source="If the &lt;code&gt;$GIT_DIR&lt;/code&gt; environment variable is set then it specifies a path to use instead of &lt;code&gt;./.git&lt;/code&gt; for the base of the repository." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&acy; &ZeroWidthSpace;&ZeroWidthSpace;&pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&acy;&yacy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>$GIT_DIR</code> , &ocy;&ncy;&acy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &pcy;&ucy;&tcy;&softcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &vcy;&mcy;&iecy;&scy;&tcy;&ocy;  <code>./.git</code>  &dcy;&lcy;&yacy; &bcy;&acy;&zcy;&ycy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;.</span></p> <p><span data-i18n="20f56f15ea50efd6966822f5d2f52fd74ff039dfb28488a1158a2b662fc4dc61/2e" data-source="If the object storage directory is specified via the &lt;code&gt;$GIT_OBJECT_DIRECTORY&lt;/code&gt; environment variable then the sha1 directories are created underneath; otherwise, the default &lt;code&gt;$GIT_DIR/objects&lt;/code&gt; directory is used." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &khcy;&rcy;&acy;&ncy;&iecy;&ncy;&icy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy; &chcy;&iecy;&rcy;&iecy;&zcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ucy;&yucy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>$GIT_OBJECT_DIRECTORY</code> , &tcy;&ocy; &pcy;&ocy;&dcy; &ncy;&icy;&mcy; &scy;&ocy;&zcy;&dcy;&acy;&yucy;&tcy;&scy;&yacy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy; sha1; &vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;  <code>$GIT_DIR/objects</code>  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;.</span></p> <p><span data-i18n="6d69a09f96cafcd8cab243c5f00393044d28ce47e5e50d3528d0720717bfee88/d0" data-source="Running &lt;code&gt;git init&lt;/code&gt; in an existing repository is safe. It will not overwrite things that are already there. The primary reason for rerunning &lt;code&gt;git init&lt;/code&gt; is to pick up newly added templates (or to move the repository to another place if --separate-git-dir is given)." onmousemove="i18n(this)">&Zcy;&acy;&pcy;&ucy;&scy;&kcy;  <code>git init</code>  &vcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&iecy;&ncy;. &Ocy;&ncy; &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&tcy;&softcy; &ucy;&zhcy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &vcy;&iecy;&shchcy;&icy;. &Ocy;&scy;&ncy;&ocy;&vcy;&ncy;&acy;&yacy; &pcy;&rcy;&icy;&chcy;&icy;&ncy;&acy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy;&gcy;&ocy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;  <code>git init</code>  &mdash; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&iecy; &ncy;&ocy;&vcy;&ycy;&khcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; (&icy;&lcy;&icy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&shchcy;&iecy;&ncy;&icy;&iecy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &vcy; &dcy;&rcy;&ucy;&gcy;&ocy;&iecy; &mcy;&iecy;&scy;&tcy;&ocy;, &iecy;&scy;&lcy;&icy; &ucy;&kcy;&acy;&zcy;&acy;&ncy; --separate-git-dir).</span></p> </div> <h2 class="text-body-emphasis"  id="_options"><span data-i18n="d0db8b5e364b6989e4b8f38a2b3846b87d99a51c1592ebf35d21cc66405a8e39/b6" data-source="Options" onmousemove="i18n(this)">Options</span></h2> <div> <div> <dl> <dt id="Documentation/git-init.txt--q"><span data-i18n="5ce681666a15a41274346f65b8bcbf56f8e8170ac00706a44a09ee4d786a8609/cd" data-source="-q" onmousemove="i18n(this)">-q</span></dt> <dt id="Documentation/git-init.txt---quiet"><span data-i18n="b00818cdc507640687732769ee1cb501db377927ee76d03df23978bd0d706888/e2" data-source="--quiet" onmousemove="i18n(this)">--quiet</span></dt> <dd> <p><span data-i18n="d643ed6c292748eb91c7f6894a306d58ee2125bffd21b7c9a1f9eaf74d2c4ee4/e3" data-source="Only print error and warning messages; all other output will be suppressed." onmousemove="i18n(this)">&Pcy;&iecy;&chcy;&acy;&tcy;&acy;&tcy;&softcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &ocy;&bcy; &ocy;&shcy;&icy;&bcy;&kcy;&acy;&khcy; &icy; &pcy;&rcy;&iecy;&dcy;&ucy;&pcy;&rcy;&iecy;&zhcy;&dcy;&iecy;&ncy;&icy;&yacy;; &vcy;&scy;&iecy; &ocy;&scy;&tcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &vcy;&ycy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &pcy;&ocy;&dcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy;.</span></p> </dd> <dt id="Documentation/git-init.txt---bare"><span data-i18n="cb1abf99e72ab1f9e258a96d3fe192cdbb16d2ded8d3d0c09c60d56fe19ca4fa/d8" data-source="--bare" onmousemove="i18n(this)">--bare</span></dt> <dd> <p><span data-i18n="d32ad8df4cff2f1e0414174514154b463ee2a51b132fc37e6d4c32ce1267eeb9/75" data-source="Create a bare repository. If &lt;code&gt;GIT_DIR&lt;/code&gt; environment is not set, it is set to the current working directory." onmousemove="i18n(this)">&Scy;&ocy;&zcy;&dcy;&acy;&jcy;&tcy;&iecy; &pcy;&ucy;&scy;&tcy;&ocy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;. &IEcy;&scy;&lcy;&icy; &scy;&rcy;&iecy;&dcy;&acy;  <code>GIT_DIR</code>  &ncy;&iecy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&acy;, &ucy;&scy;&tcy;&acy;&ncy;&acy;&vcy;&lcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&jcy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;.</span></p> </dd> <dt id="Documentation/git-init.txt---object-formatltformatgt"><span data-i18n="b0234d61da2965df5e389405ef3359c6810b606ad81ba98018c9f2aa774ec4ba/da" data-source="--object-format=&amp;lt;format&amp;gt;" onmousemove="i18n(this)">--object-format=&lt;format&gt;</span></dt> <dd> <p><span data-i18n="2fa81fbd8256fe8eaed34b7730dcb898c76597b803d884ae822428e7bdd93734/8f" data-source="Specify the given object format (hash algorithm) for the repository. The valid values are &lt;code&gt;sha1&lt;/code&gt; and (if enabled) &lt;code&gt;sha256&lt;/code&gt;. &lt;code&gt;sha1&lt;/code&gt; is the default." onmousemove="i18n(this)">&Ucy;&kcy;&acy;&zhcy;&icy;&tcy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; (&acy;&lcy;&gcy;&ocy;&rcy;&icy;&tcy;&mcy; &khcy;&iecy;&shcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;) &dcy;&lcy;&yacy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;. &Dcy;&ocy;&pcy;&ucy;&scy;&tcy;&icy;&mcy;&ycy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy;:  <code>sha1</code>  &icy; (&iecy;&scy;&lcy;&icy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ocy;)  <code>sha256</code> .  <code>sha1</code>  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;.</span></p> <p><span data-i18n="398a5a5a6f8752b214cfbfed0d9c0fb34510e68fcad8c3b00c9a37d568b9145b/65" data-source="Note: At present, there is no interoperability between SHA-256 repositories and SHA-1 repositories." onmousemove="i18n(this)">&Pcy;&rcy;&icy;&mcy;&iecy;&chcy;&acy;&ncy;&icy;&iecy;. &Vcy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &mcy;&iecy;&zhcy;&dcy;&ucy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;&mcy;&icy; SHA-256 &icy; SHA-1 &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &scy;&ocy;&vcy;&mcy;&iecy;&scy;&tcy;&icy;&mcy;&ocy;&scy;&tcy;&softcy;.</span></p> </dd> </dl> </div> <p><span data-i18n="efda502f5af7ec179a4c1a3580df127337e10c638436b7a58d41392a2e05b1e1/3c" data-source="Historically, we warned that SHA-256 repositories may later need backward incompatible changes when we introduce such interoperability features. Today, we only expect compatible changes. Furthermore, if such changes prove to be necessary, it can be expected that SHA-256 repositories created with today&amp;rsquo;s Git will be usable by future versions of Git without data loss." onmousemove="i18n(this)">&Icy;&scy;&tcy;&ocy;&rcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &mcy;&ycy; &pcy;&rcy;&iecy;&dcy;&ucy;&pcy;&rcy;&iecy;&zhcy;&dcy;&acy;&lcy;&icy;, &chcy;&tcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;&mcy; SHA-256 &vcy;&pcy;&ocy;&scy;&lcy;&iecy;&dcy;&scy;&tcy;&vcy;&icy;&icy; &mcy;&ocy;&gcy;&ucy;&tcy; &pcy;&ocy;&tcy;&rcy;&iecy;&bcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &ncy;&iecy;&scy;&ocy;&vcy;&mcy;&iecy;&scy;&tcy;&icy;&mcy;&ycy;&iecy; &scy; &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&icy;&mcy;&icy; &vcy;&iecy;&rcy;&scy;&icy;&yacy;&mcy;&icy;, &kcy;&ocy;&gcy;&dcy;&acy; &mcy;&ycy; &vcy;&vcy;&iecy;&dcy;&iecy;&mcy; &tcy;&acy;&kcy;&icy;&iecy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&icy; &vcy;&zcy;&acy;&icy;&mcy;&ocy;&dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&yacy;. &Scy;&iecy;&gcy;&ocy;&dcy;&ncy;&yacy; &mcy;&ycy; &ocy;&zhcy;&icy;&dcy;&acy;&iecy;&mcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &scy;&ocy;&vcy;&mcy;&iecy;&scy;&tcy;&icy;&mcy;&ycy;&khcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy;. &Bcy;&ocy;&lcy;&iecy;&iecy; &tcy;&ocy;&gcy;&ocy;, &iecy;&scy;&lcy;&icy; &tcy;&acy;&kcy;&icy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &ocy;&kcy;&acy;&zhcy;&ucy;&tcy;&scy;&yacy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ycy;&mcy;&icy;, &mcy;&ocy;&zhcy;&ncy;&ocy; &ocy;&zhcy;&icy;&dcy;&acy;&tcy;&softcy;, &chcy;&tcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; SHA-256, &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ycy;&iecy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &scy;&iecy;&gcy;&ocy;&dcy;&ncy;&yacy;&shcy;&ncy;&iecy;&gcy;&ocy;  Git , &mcy;&ocy;&zhcy;&ncy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &vcy; &bcy;&ucy;&dcy;&ucy;&shchcy;&icy;&khcy; &vcy;&iecy;&rcy;&scy;&icy;&yacy;&khcy;  Git  &bcy;&iecy;&zcy; &pcy;&ocy;&tcy;&iecy;&rcy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;.</span></p> <div> <dl> <dt id="Documentation/git-init.txt---templatelttemplate-directorygt"><span data-i18n="ba5820ca4d308030a2d07932b6f609b11706127cd656ea659466560984db0d5f/51" data-source="--template=&amp;lt;template-directory&amp;gt;" onmousemove="i18n(this)">--template=&lt;template-directory&gt;</span></dt> <dd> <p><span data-i18n="bcbce26b5022282b9ba22fbd232bd77864afe3924876b66ef4226ba75c71cd0a/0b" data-source="Specify the directory from which templates will be used. (See the &amp;quot;TEMPLATE DIRECTORY&amp;quot; section below.)" onmousemove="i18n(this)">&Ucy;&kcy;&acy;&zhcy;&icy;&tcy;&iecy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;, &icy;&zcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &bcy;&ucy;&dcy;&ucy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy;. (&Scy;&mcy;. &rcy;&acy;&zcy;&dcy;&iecy;&lcy;  &quot;TEMPLATE DIRECTORY&quot;  &ncy;&icy;&zhcy;&iecy;.)</span></p> </dd> <dt id="Documentation/git-init.txt---separate-git-dirltgit-dirgt"><span data-i18n="81b791d0ed4e7d11c00abdab14d7a9ecc71ed768a9fd2afb339ae16886dab7d1/dd" data-source="--separate-git-dir=&amp;lt;git-dir&amp;gt;" onmousemove="i18n(this)">--separate-git-dir=&lt;git-dir&gt;</span></dt> <dd> <p><span data-i18n="c97082f206b047bdda6f814c72663bdfc6a067128a6c49be4cbc0f014f5e0ca9/a5" data-source="Instead of initializing the repository as a directory to either &lt;code&gt;$GIT_DIR&lt;/code&gt; or &lt;code&gt;./.git/&lt;/code&gt;, create a text file there containing the path to the actual repository. This file acts as a filesystem-agnostic Git symbolic link to the repository." onmousemove="i18n(this)">&Vcy;&mcy;&iecy;&scy;&tcy;&ocy; &icy;&ncy;&icy;&tscy;&icy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &kcy;&acy;&kcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;  <code>$GIT_DIR</code>  &icy;&lcy;&icy;  <code>./.git/</code>  &scy;&ocy;&zcy;&dcy;&acy;&jcy;&tcy;&iecy; &tcy;&acy;&mcy; &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&icy;&jcy; &pcy;&ucy;&tcy;&softcy; &kcy; &fcy;&acy;&kcy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&mcy;&ucy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yucy;. &Ecy;&tcy;&ocy;&tcy; &fcy;&acy;&jcy;&lcy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &kcy;&acy;&kcy; &ncy;&iecy;&zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&acy;&yacy; &ocy;&tcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;&ocy;&jcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ycy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&acy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy;  Git  &ncy;&acy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;.</span></p> <p><span data-i18n="811001a44f052f97b3baf51caf2b2bd94905a4c3db2a9095eb39e7a8f55b03cf/f4" data-source="If this is a reinitialization, the repository will be moved to the specified path." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &ecy;&tcy;&ocy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&acy;&yacy; &icy;&ncy;&icy;&tscy;&icy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&yacy;, &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&shchcy;&iecy;&ncy; &pcy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&mcy;&ucy; &pcy;&ucy;&tcy;&icy;.</span></p> </dd> <dt id="Documentation/git-init.txt--bltbranch-namegt"><span data-i18n="d516a688263fe052d3b724bc2ea1cc04e1b3d2a5db3e988dfd6546fc89a7e852/8b" data-source="-b &amp;lt;branch-name&amp;gt;" onmousemove="i18n(this)">-b &lt;branch-name&gt;</span></dt> <dt id="Documentation/git-init.txt---initial-branchltbranch-namegt"><span data-i18n="95a485f882d22b36e515ab63a825e5727927d4b7a5ca8d286e5c6197fb2cbf39/fa" data-source="--initial-branch=&amp;lt;branch-name&amp;gt;" onmousemove="i18n(this)">--initial-branch=&lt;branch-name&gt;</span></dt> <dd> <p><span data-i18n="bd646031cd80cda4af87346b9d6c7e00aba1643bd05e65ceea0f25b2f27deac7/90" data-source="Use the specified name for the initial branch in the newly created repository. If not specified, fall back to the default name (currently &lt;code&gt;master&lt;/code&gt;, but this is subject to change in the future; the name can be customized via the &lt;code&gt;init.defaultBranch&lt;/code&gt; configuration variable)." onmousemove="i18n(this)">&Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&iecy; &icy;&mcy;&yacy; &dcy;&lcy;&yacy; &ncy;&acy;&chcy;&acy;&lcy;&softcy;&ncy;&ocy;&jcy; &vcy;&iecy;&tcy;&kcy;&icy; &vcy;&ocy; &vcy;&ncy;&ocy;&vcy;&softcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;. &IEcy;&scy;&lcy;&icy; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ocy;, &vcy;&iecy;&rcy;&ncy;&icy;&tcy;&iecy;&scy;&softcy; &kcy; &icy;&mcy;&iecy;&ncy;&icy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; (&vcy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy;  <code>master</code> , &ncy;&ocy; &ocy;&ncy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&ocy; &vcy; &bcy;&ucy;&dcy;&ucy;&shchcy;&iecy;&mcy;; &icy;&mcy;&yacy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>init.defaultBranch</code> ).</span></p> </dd> <dt id="Documentation/git-init.txt---sharedfalsetrueumaskgroupallworldeverybodyltpermgt"><span data-i18n="556171dd853362af14a7a2722e105c7e2b7cd031a5512f85f0de700341989992/2a" data-source="--shared[=(false|true|umask|group|all|world|everybody|&amp;lt;perm&amp;gt;)]" onmousemove="i18n(this)">--shared[=(false|true|umask|group|all|world|everybody|&lt;perm&gt;)]</span></dt> <dd> <p><span data-i18n="4a3e37b8cd5ea16b48284d7fa73f7643e79aca1f1ead766c552f280924bc359d/83" data-source="Specify that the Git repository is to be shared amongst several users. This allows users belonging to the same group to push into that repository. When specified, the config variable &amp;quot;core.sharedRepository&amp;quot; is set so that files and directories under &lt;code&gt;$GIT_DIR&lt;/code&gt; are created with the requested permissions. When not specified, Git will use permissions reported by umask(2)." onmousemove="i18n(this)">&Ucy;&kcy;&acy;&zhcy;&icy;&tcy;&iecy;, &chcy;&tcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;  Git  &bcy;&ucy;&dcy;&iecy;&tcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&iecy;&ncy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&icy;&mcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;&mcy;. &Ecy;&tcy;&ocy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;&mcy;, &pcy;&rcy;&icy;&ncy;&acy;&dcy;&lcy;&iecy;&zhcy;&acy;&shchcy;&icy;&mcy; &kcy; &ocy;&dcy;&ncy;&ocy;&jcy; &gcy;&rcy;&ucy;&pcy;&pcy;&iecy;, &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &vcy; &ecy;&tcy;&ocy;&tcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;. &IEcy;&scy;&lcy;&icy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ocy;, &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&acy;&yacy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  &quot;core.sharedRepository&quot;  &zcy;&acy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &chcy;&tcy;&ocy; &fcy;&acy;&jcy;&lcy;&ycy; &icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy; &pcy;&ocy;&dcy;  <code>$GIT_DIR</code>  &scy;&ocy;&zcy;&dcy;&acy;&yucy;&tcy;&scy;&yacy; &scy; &zcy;&acy;&pcy;&rcy;&ocy;&shcy;&iecy;&ncy;&ncy;&ycy;&mcy;&icy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy;&mcy;&icy;. &IEcy;&scy;&lcy;&icy; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ocy; &icy;&ncy;&ocy;&iecy;,  Git  &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy;, &scy;&ocy;&ocy;&bcy;&shchcy;&acy;&iecy;&mcy;&ycy;&iecy; umask(2).</span></p> <p><span data-i18n="d4f7458b208a0239c1b68c0567b3f7b0309236f28b1c5cb9c654156740bf6314/67" data-source="The option can have the following values, defaulting to &lt;code&gt;group&lt;/code&gt; if no value is given:" onmousemove="i18n(this)">&Ocy;&pcy;&tscy;&icy;&yacy; &mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy;, &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;  <code>group</code> , &iecy;&scy;&lcy;&icy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ocy;:</span></p> <div> <div> <div> <dl> <dt id="Documentation/git-init.txt-emumaskemoremfalseem"> <span data-i18n="0e84f25ef5f5abbf308a1b143622278d817ec43fae96629d43da0d1482f42882/fe" data-source="&lt;em&gt;umask&lt;/em&gt; (or &lt;em&gt;false&lt;/em&gt;)" onmousemove="i18n(this)">&mcy;&acy;&scy;&kcy;&acy; (&icy;&lcy;&icy; &lcy;&ocy;&zhcy;&softcy;)</span></dt> <dd> <p><span data-i18n="be307b6e022ba5926336d01437295e3b49e164a9a9ba6c0fee3293b01b11449a/1d" data-source="Use permissions reported by umask(2). The default, when &lt;code&gt;--shared&lt;/code&gt; is not specified." onmousemove="i18n(this)">&Rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy; &ncy;&acy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;, &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; umask(2). &Zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &iecy;&scy;&lcy;&icy; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;  <code>--shared</code> .</span></p> </dd> <dt id="Documentation/git-init.txt-emgroupemoremtrueem"> <span data-i18n="1d6a8ba77b509d8fb512a6764882e5b1764501ba169df1256d15f7eaa6c328de/da" data-source="&lt;em&gt;group&lt;/em&gt; (or &lt;em&gt;true&lt;/em&gt;)" onmousemove="i18n(this)">&gcy;&rcy;&ucy;&pcy;&pcy;&acy; (&icy;&lcy;&icy; &pcy;&rcy;&acy;&vcy;&dcy;&acy;)</span></dt> <dd> <p><span data-i18n="a6cf711130bd676c8e914c646bf300341b9d6030d428b34779ffee2a592177b5/71" data-source="Make the repository group-writable, (and g+sx, since the git group may not be the primary group of all users). This is used to loosen the permissions of an otherwise safe umask(2) value. Note that the umask still applies to the other permission bits (e.g. if umask is &lt;code&gt;0022&lt;/code&gt;, using &lt;code&gt;group&lt;/code&gt; will not remove read privileges from other (non-group) users). See &lt;code&gt;0xxx&lt;/code&gt; for how to exactly specify the repository permissions." onmousemove="i18n(this)">&Scy;&dcy;&iecy;&lcy;&acy;&jcy;&tcy;&iecy; &gcy;&rcy;&ucy;&pcy;&pcy;&ucy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ocy;&jcy; &dcy;&lcy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&icy; (&icy; g+sx, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &gcy;&rcy;&ucy;&pcy;&pcy;&acy;  git  &mcy;&ocy;&zhcy;&iecy;&tcy; &ncy;&iecy; &bcy;&ycy;&tcy;&softcy; &ocy;&scy;&ncy;&ocy;&vcy;&ncy;&ocy;&jcy; &gcy;&rcy;&ucy;&pcy;&pcy;&ocy;&jcy; &dcy;&lcy;&yacy; &vcy;&scy;&iecy;&khcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&jcy;). &Ecy;&tcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &ocy;&scy;&lcy;&acy;&bcy;&lcy;&iecy;&ncy;&icy;&yacy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&jcy; &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&ocy;&gcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; umask(2). &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; umask &pcy;&ocy;-&pcy;&rcy;&iecy;&zhcy;&ncy;&iecy;&mcy;&ucy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &kcy; &dcy;&rcy;&ucy;&gcy;&icy;&mcy; &bcy;&icy;&tcy;&acy;&mcy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&jcy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; umask &icy;&mcy;&iecy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  <code>0022</code> , &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy;  <code>group</code>  &ncy;&iecy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yucy; &pcy;&rcy;&icy;&vcy;&icy;&lcy;&iecy;&gcy;&icy;&jcy; &chcy;&tcy;&iecy;&ncy;&icy;&yacy; &ucy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy; (&ncy;&iecy; &vcy;&khcy;&ocy;&dcy;&yacy;&shchcy;&icy;&khcy; &vcy; &gcy;&rcy;&ucy;&pcy;&pcy;&ucy;) &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&jcy;). &Scy;&mcy;.  <code>0xxx</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&zcy;&ncy;&acy;&tcy;&softcy;, &kcy;&acy;&kcy; &tcy;&ocy;&chcy;&ncy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;.</span></p> </dd> <dt id="Documentation/git-init.txt-emallemoremworldemoremeverybodyem"> <span data-i18n="e2053d5bea99bdf2874804217161e133a85b1b4d259bd7dbecf85ccd69052ce1/02" data-source="&lt;em&gt;all&lt;/em&gt; (or &lt;em&gt;world&lt;/em&gt; or &lt;em&gt;everybody&lt;/em&gt;)" onmousemove="i18n(this)">&vcy;&scy;&iecy; (&icy;&lcy;&icy; &mcy;&icy;&rcy; &icy;&lcy;&icy; &vcy;&scy;&iecy;)</span></dt> <dd> <p><span data-i18n="cd53bec1711b573dd05e4026966c364a727955bcc6863aec42ae16aa59e7908c/3d" data-source="Same as &lt;code&gt;group&lt;/code&gt;, but make the repository readable by all users." onmousemove="i18n(this)">&Tcy;&ocy; &zhcy;&iecy;, &chcy;&tcy;&ocy; &icy;  <code>group</code> , &ncy;&ocy; &scy;&dcy;&iecy;&lcy;&acy;&jcy;&tcy;&iecy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&mcy; &dcy;&lcy;&yacy; &chcy;&tcy;&iecy;&ncy;&icy;&yacy; &vcy;&scy;&iecy;&mcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;&mcy;.</span></p> </dd> <dt id="Documentation/git-init.txt-emltpermgtem"> <span data-i18n="2532f82577b43f0414871d8e67b302b66c7d8bfbcac46d291b6d3748e0164dd4/5f" data-source="&lt;em&gt;&amp;lt;perm&amp;gt;&lt;/em&gt;" onmousemove="i18n(this)"><em>&lt;perm&gt;</em></span> </dt> <dd> <p><span data-i18n="3053d1bfe9348ef34db42de681a63d5a03ffda023f7536d9b66f41f613e8bab1/23" data-source="&lt;code&gt;&amp;lt;perm&amp;gt;&lt;/code&gt; is a 3-digit octal number prefixed with &lt;code&gt;0&lt;/code&gt; and each file will have mode &lt;code&gt;&amp;lt;perm&amp;gt;&lt;/code&gt;. &lt;code&gt;&amp;lt;perm&amp;gt;&lt;/code&gt; will override users&amp;apos; umask(2) value (and not only loosen permissions as &lt;code&gt;group&lt;/code&gt; and &lt;code&gt;all&lt;/code&gt; do). &lt;code&gt;0640&lt;/code&gt; will create a repository which is group-readable, but not group-writable or accessible to others. &lt;code&gt;0660&lt;/code&gt; will create a repo that is readable and writable to the current user and group, but inaccessible to others (directories and executable files get their &lt;code&gt;x&lt;/code&gt; bit from the &lt;code&gt;r&lt;/code&gt; bit for corresponding classes of users)." onmousemove="i18n(this)"><code>&lt;perm&gt;</code>  &mdash; &ecy;&tcy;&ocy; &tcy;&rcy;&iecy;&khcy;&zcy;&ncy;&acy;&chcy;&ncy;&ocy;&iecy; &vcy;&ocy;&scy;&softcy;&mcy;&iecy;&rcy;&icy;&chcy;&ncy;&ocy;&iecy; &chcy;&icy;&scy;&lcy;&ocy; &scy; &pcy;&rcy;&iecy;&fcy;&icy;&kcy;&scy;&ocy;&mcy;  <code>0</code> , &icy; &kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; &rcy;&iecy;&zhcy;&icy;&mcy;  <code>&lt;perm&gt;</code> .  <code>&lt;perm&gt;</code>  &pcy;&iecy;&rcy;&iecy;&ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; umask(2) &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; (&acy; &ncy;&iecy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ocy;&scy;&lcy;&acy;&bcy;&lcy;&yacy;&iecy;&tcy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy;, &kcy;&acy;&kcy; &ecy;&tcy;&ocy; &dcy;&iecy;&lcy;&acy;&yucy;&tcy;  <code>group</code>  &icy;  <code>all</code> ).  <code>0640</code>  &scy;&ocy;&zcy;&dcy;&acy;&scy;&tcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;, &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&jcy; &dcy;&lcy;&yacy; &gcy;&rcy;&ucy;&pcy;&pcy;&ocy;&vcy;&ocy;&gcy;&ocy; &chcy;&tcy;&iecy;&ncy;&icy;&yacy;, &ncy;&ocy; &ncy;&iecy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&jcy; &dcy;&lcy;&yacy; &gcy;&rcy;&ucy;&pcy;&pcy;&ocy;&vcy;&ocy;&jcy; &zcy;&acy;&pcy;&icy;&scy;&icy; &icy;&lcy;&icy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&jcy; &dcy;&rcy;&ucy;&gcy;&icy;&mcy;.  <code>0660</code>  &scy;&ocy;&zcy;&dcy;&acy;&scy;&tcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;, &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&jcy; &dcy;&lcy;&yacy; &chcy;&tcy;&iecy;&ncy;&icy;&yacy; &icy; &zcy;&acy;&pcy;&icy;&scy;&icy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&mcy;&ucy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yucy; &icy; &gcy;&rcy;&ucy;&pcy;&pcy;&iecy;, &ncy;&ocy; &ncy;&iecy;&dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&jcy; &dcy;&lcy;&yacy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy; (&kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy; &icy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &pcy;&ocy;&lcy;&ucy;&chcy;&acy;&yucy;&tcy; &bcy;&icy;&tcy;  <code>x</code>  &icy;&zcy; &bcy;&icy;&tcy;&acy;  <code>r</code>  &dcy;&lcy;&yacy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; &kcy;&lcy;&acy;&scy;&scy;&ocy;&vcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&jcy;).</span></p> </dd> </dl> </div> </div> </div> </dd> </dl> </div> <p><span data-i18n="e66fae316a703531e34cdd2a50f059f9192c7baf42dfd09ddf626a5637a1ae38/09" data-source="By default, the configuration flag &lt;code&gt;receive.denyNonFastForwards&lt;/code&gt; is enabled in shared repositories, so that you cannot force a non fast-forwarding push into it." onmousemove="i18n(this)">&Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &fcy;&lcy;&acy;&gcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>receive.denyNonFastForwards</code>  &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy; &vcy; &ocy;&bcy;&shchcy;&icy;&khcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;&khcy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &vcy;&ycy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&icy;&ncy;&ucy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &vcy; &ncy;&iecy;&gcy;&ocy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&ucy; &bcy;&iecy;&zcy; &bcy;&ycy;&scy;&tcy;&rcy;&ocy;&jcy; &pcy;&iecy;&rcy;&iecy;&scy;&ycy;&lcy;&kcy;&icy;.</span></p> <p><span data-i18n="a5eb77bd46617860de75be12c5e815def3b0b6b72acd9e504736aad2e6b6fd58/4c" data-source="If you provide a &lt;code&gt;directory&lt;/code&gt;, the command is run inside it. If this directory does not exist, it will be created." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&ycy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&iecy;  <code>directory</code> , &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy;&ncy;&ucy;&tcy;&rcy;&icy; &ncy;&iecy;&gcy;&ocy;. &IEcy;&scy;&lcy;&icy; &ecy;&tcy;&ocy;&tcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &ncy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;, &ocy;&ncy; &bcy;&ucy;&dcy;&iecy;&tcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_template_directory"><span data-i18n="87147c275c5aa460e9acb30e47743e3acf3bc0fa2ebc0a9e61e806037fd0ce36/08" data-source="Template directory" onmousemove="i18n(this)">Template directory</span></h2> <div> <p><span data-i18n="3a2912d76ae7b30f05e63286519d5a9220ea5becd3756df5c4f58732a3abdb41/28" data-source="Files and directories in the template directory whose name do not start with a dot will be copied to the &lt;code&gt;$GIT_DIR&lt;/code&gt; after it is created." onmousemove="i18n(this)">&Fcy;&acy;&jcy;&lcy;&ycy; &icy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy; &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy;, &icy;&mcy;&iecy;&ncy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &ncy;&iecy; &ncy;&acy;&chcy;&icy;&ncy;&acy;&yucy;&tcy;&scy;&yacy; &scy; &tcy;&ocy;&chcy;&kcy;&icy;, &bcy;&ucy;&dcy;&ucy;&tcy; &scy;&kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ycy; &vcy;  <code>$GIT_DIR</code>  &pcy;&ocy;&scy;&lcy;&iecy; &iecy;&gcy;&ocy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy;.</span></p> <p><span data-i18n="dfbac6fedf1c05b1f8a6b94e052b5124fa30bb7a069ee7cf60d22673f9f9a396/ba" data-source="The template directory will be one of the following (in order):" onmousemove="i18n(this)">&Kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&dcy;&ncy;&icy;&mcy; &icy;&zcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&khcy; (&pcy;&ocy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&ucy;):</span></p> <div> <ul> <li> <p><span data-i18n="5e9170f534bb1becda4b16e561ef061b1ace723190386127bf309e786e57ed37/79" data-source="the argument given with the &lt;code&gt;--template&lt;/code&gt; option;" onmousemove="i18n(this)">&acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;, &zcy;&acy;&dcy;&acy;&ncy;&ncy;&ycy;&jcy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>--template</code> ;</span></p> </li> <li> <p><span data-i18n="aa6d8084e135daad4e4429005baa3f50a17817cb8621eded51aa817083c3e786/3e" data-source="the contents of the &lt;code&gt;$GIT_TEMPLATE_DIR&lt;/code&gt; environment variable;" onmousemove="i18n(this)">&scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>$GIT_TEMPLATE_DIR</code> ;</span></p> </li> <li> <p><span data-i18n="b4e2e57140cbba62f7d20d9f75f4bf91928698ffbc671270a8583d7f76b4b0bb/7b" data-source="the &lt;code&gt;init.templateDir&lt;/code&gt; configuration variable; or" onmousemove="i18n(this)">&pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&acy;&yacy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>init.templateDir</code> ; &icy;&lcy;&icy;</span></p> </li> <li> <p><span data-i18n="d07842ab261350a2e10da5f34fadac730820bd9be400e0f0ac4a651ca5a08154/f6" data-source="the default template directory: &lt;code&gt;/usr/share/git-core/templates&lt;/code&gt;." onmousemove="i18n(this)">&kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;:  <code>/usr/share/git-core/templates</code> .</span></p> </li> </ul> </div> <p><span data-i18n="9c1ac268d5237c3ca9a144a80e9eb087e431955b9a1223385c3edc63989fb6a1/f3" data-source="The default template directory includes some directory structure, suggested &amp;quot;exclude patterns&amp;quot; (see &lt;a href=&quot;gitignore&quot;&gt;gitignore[5]&lt;/a&gt;), and sample hook files." onmousemove="i18n(this)">&Kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy; &scy;&tcy;&rcy;&ucy;&kcy;&tcy;&ucy;&rcy;&ucy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&vcy;, &pcy;&rcy;&iecy;&dcy;&lcy;&ocy;&zhcy;&iecy;&ncy;&ncy;&ucy;&yucy;  &quot;exclude patterns&quot;  (&scy;&mcy;.  <a href="gitignore.html">gitignore[5]</a> ), &icy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&ycy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &lcy;&ocy;&vcy;&ucy;&shcy;&iecy;&kcy;.</span></p> <p><span data-i18n="4b7e04dd70fc5ece4d44c835895ea6a3b2d2b81c9fa71eba8c9f9af8d0f19c81/17" data-source="The sample hooks are all disabled by default. To enable one of the sample hooks rename it by removing its &lt;code&gt;.sample&lt;/code&gt; suffix." onmousemove="i18n(this)">&Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &vcy;&scy;&iecy; &khcy;&ucy;&kcy;&icy; &scy;&ecy;&mcy;&pcy;&lcy;&ocy;&vcy; &ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ycy;. &CHcy;&tcy;&ocy;&bcy;&ycy; &vcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy; &ocy;&dcy;&icy;&ncy; &icy;&zcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&ocy;&vcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&ocy;&vcy;, &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ucy;&jcy;&tcy;&iecy; &iecy;&gcy;&ocy;, &ucy;&dcy;&acy;&lcy;&icy;&vcy; &scy;&ucy;&fcy;&fcy;&icy;&kcy;&scy;  <code>.sample</code> .</span></p> <p><span data-i18n="69cc46101a3d3e2e6cfc4b4bbe1bf53f9dcf25edc3eda2aa973543d3e7feb0cc/e9" data-source="See &lt;a href=&quot;githooks&quot;&gt;githooks[5]&lt;/a&gt; for more general info on hook execution." onmousemove="i18n(this)">&Scy;&mcy;.  <a href="githooks.html">githooks[5]</a>  &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &bcy;&ocy;&lcy;&iecy;&iecy; &ocy;&bcy;&shchcy;&iecy;&jcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy; &ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&icy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&acy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_examples"><span data-i18n="e68ee04dff59551b7d1ae07a2f8a00dc61d841628948da3d2781630706a05e92/38" data-source="Examples" onmousemove="i18n(this)">Examples</span></h2> <div> <div> <dl> <dt id="Documentation/git-init.txt-StartanewGitrepositoryforanexistingcodebase"><span data-i18n="5a8f5772b8e1e2682381e7232e07fbacb6e527e31fd2bdb44b711c4e614d1ac8/00" data-source="Start a new Git repository for an existing code base" onmousemove="i18n(this)">&Zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&iecy; &ncy;&ocy;&vcy;&ycy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;  Git  &dcy;&lcy;&yacy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &bcy;&acy;&zcy;&ycy; &kcy;&ocy;&dcy;&acy;.</span></dt> <dd> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">cd</span> /path/to/my/codebase</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git init      (1)</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git add .     (2)</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git commit    (3)</span></pre> </div> </div> <div> <ol> <li> <p><span data-i18n="ff8030a61b0d90095e06990fead2adfae6b580ea325f161c5e3618a21a004c88/9f" data-source="Create a /path/to/my/codebase/.git directory." onmousemove="i18n(this)">&Scy;&ocy;&zcy;&dcy;&acy;&jcy;&tcy;&iecy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; /path/to/my/codebase/.git.</span></p> </li> <li> <p><span data-i18n="8d87c185f38ef335ee44d1a60d381b257afb933c554ab04fa5cff4ff6c016ac7/5c" data-source="Add all existing files to the index." onmousemove="i18n(this)">&Dcy;&ocy;&bcy;&acy;&vcy;&softcy;&tcy;&iecy; &vcy;&scy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;.</span></p> </li> <li> <p><span data-i18n="9210b508e96edbf20a914404ae95bf4e3d6a98876e04dfd063825e88943a44a7/e6" data-source="Record the pristine state as the first commit in the history." onmousemove="i18n(this)">&Zcy;&acy;&pcy;&icy;&shcy;&icy;&tcy;&iecy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ocy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &kcy;&acy;&kcy; &pcy;&iecy;&rcy;&vcy;&ycy;&jcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy; &vcy; &icy;&scy;&tcy;&ocy;&rcy;&icy;&icy;.</span></p> </li> </ol> </div> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_configuration"><span data-i18n="b332c3492d5eb10a118eb6d8b0dcd689bc2477ce2ae16b303753b942b54377bc/aa" data-source="Configuration" onmousemove="i18n(this)">Configuration</span></h2> <div> <p><span data-i18n="5b8d919fa35b75aa925ebd5414ed6373e762fb0a087a062961c27b2ce9586555/57" data-source="Everything below this line in this section is selectively included from the &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt; documentation. The content is the same as what&amp;rsquo;s found there:" onmousemove="i18n(this)">&Vcy;&scy;&iecy;, &chcy;&tcy;&ocy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &ncy;&icy;&zhcy;&iecy; &ecy;&tcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &vcy; &ecy;&tcy;&ocy;&mcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;, &vcy;&ycy;&bcy;&ocy;&rcy;&ocy;&chcy;&ncy;&ocy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ocy; &icy;&zcy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&tscy;&icy;&icy;  <a href="git-config.html">git-config[1]</a> . &Scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&ncy;&icy;&iecy; &tcy;&acy;&kcy;&ocy;&iecy; &zhcy;&iecy;, &kcy;&acy;&kcy; &icy; &ncy;&acy;&jcy;&dcy;&iecy;&ncy;&ncy;&ocy;&iecy; &tcy;&acy;&mcy;:</span></p> <div> <dl> <dt id="Documentation/git-init.txt-inittemplateDir"><span data-i18n="b343092364570a510bfd7368dc8647b906488d10fffc609a83e15c14c5dec46d/85" data-source="init.templateDir" onmousemove="i18n(this)">init.templateDir</span></dt> <dd> <p><span data-i18n="a8f9755dc85d9d1b0ea3c2d6fea41fb0b30025620d89310635c5dea7c0327d28/5b" data-source="Specify the directory from which templates will be copied. (See the &amp;quot;TEMPLATE DIRECTORY&amp;quot; section of &lt;a href=&quot;git-init&quot;&gt;git-init[1]&lt;/a&gt;.)" onmousemove="i18n(this)">&Ucy;&kcy;&acy;&zhcy;&icy;&tcy;&iecy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;, &icy;&zcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &bcy;&ucy;&dcy;&ucy;&tcy; &kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ycy;. (&Scy;&mcy;. &rcy;&acy;&zcy;&dcy;&iecy;&lcy;  &quot;TEMPLATE DIRECTORY&quot;  &vcy;  <a href="git-init.html">git-init[1]</a> .)</span></p> </dd> <dt id="Documentation/git-init.txt-initdefaultBranch"><span data-i18n="248f783fa86eaf894cbebccf805379369a3a3ee71fd93bf353b6b5133e7ad905/2c" data-source="init.defaultBranch" onmousemove="i18n(this)">init.defaultBranch</span></dt> <dd> <p><span data-i18n="285577966f5fd53110152b1cbb7d1ac3d712e57e15f7ca7ec9e346d05900e001/ef" data-source="Allows overriding the default branch name e.g. when initializing a new repository." onmousemove="i18n(this)">&Pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&icy;&tcy;&softcy; &icy;&mcy;&yacy; &vcy;&iecy;&tcy;&kcy;&icy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &pcy;&rcy;&icy; &icy;&ncy;&icy;&tscy;&icy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;.</span></p> </dd> </dl> </div> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/git-init">https://git-scm.com/docs/git-init</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                               <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-instaweb.html">
                            git instaweb                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-interpret-trailers.html">
                            git interpret-trailers                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-log.html">
                            git log                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-ls-files.html">
                            git ls-files                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-ls-remote.html">
                            git ls-remote                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-ls-tree.html">
                            git ls-tree                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-mailinfo.html">
                            git mailinfo                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="git-init.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>